//
//  DutyBasicTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/11/1.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "DutyBasicTableViewCell.h"

@implementation DutyBasicTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.userInteractionEnabled=YES;
        _myTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(8, 10, 80, 30) text:@""];
        _myTitleLabel.textAlignment=NSTextAlignmentCenter;
        _myTitleLabel.layer.masksToBounds=YES;
        _myTitleLabel.layer.cornerRadius=5;
        [self.contentView addSubview:_myTitleLabel];
        
        _messageLabel=[MyControl creatLabelWithFrame:CGRectMake(_myTitleLabel.x+_myTitleLabel.width+5, 15, IPHONE_WIDTH-(_myTitleLabel.x+_myTitleLabel.width)-5, 20) text:@""];
        _messageLabel.textColor=[UIColor blackColor];
        //_messageLabel.font=FONT_17;
        [self.contentView addSubview:_messageLabel];
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 49, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];
        
        _signButton=[UIButton buttonWithType:UIButtonTypeCustom];
        _signButton.frame=CGRectMake(IPHONE_WIDTH-33, 12.5, 25, 25);
        [_signButton setBackgroundImage:[UIImage imageNamed:@"k_tishi@2x"] forState:UIControlStateNormal];
        _signButton.hidden=YES;
        //[_signButton addTarget:self action:@selector(signButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [self.contentView addSubview:_signButton];
        
        _arrowImageView=[MyControl creatImageViewWithFrame:CGRectMake(IPHONE_WIDTH-50, 18, 8, 14) imageName:@"k_ic_jt@2x"];
        _arrowImageView.hidden=YES;
        [self.contentView addSubview:_arrowImageView];
        self.contentView.width=IPHONE_WIDTH;
    }
    return self;
}

- (void)signButtonClick{
    NSLog(@"signButtonClick");
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
